package com.zhao.service.serviceImpl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhao.mapper.ChartMapper;
import com.zhao.mapper.FollowMapper;
import com.zhao.pojo.Chart;
import com.zhao.pojo.Follow;
import com.zhao.pojo.User;
import com.zhao.service.ChartService;
import com.zhao.service.FollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ChartServiceImpl extends ServiceImpl<ChartMapper, Chart> implements ChartService {

    @Autowired
    ChartMapper chartMapper;

    @Override
    public List<String> CollectgroupAll(String author) {
        return chartMapper.CollectgroupAll(author);
    }

    @Override
    public List<Chart> CollectByAll(String author, String s) {
        return chartMapper.CollectByAll(author,s);
    }

    @Override
    public List<Chart> queryAllAuthor(String userAccount) {
        return chartMapper.queryAllAuthor(userAccount);
    }
}
